#include "widget.h"
#include "ui_widget.h"
#include<QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    this->setWindowTitle("QQ飞车");
    qDebug()<<"111111";
}

void Widget::on_pushButton_2_clicked()
{
    //disconnect(ui->pushButton,&QPushButton::clicked,this,&Widget::on_pushButton_clicked);
    connect(ui->pushButton,&QPushButton::clicked,this,&Widget::handleclick);
}

void Widget::handleclick()
{
    this->setWindowTitle("穿越火线");
    qDebug()<<"222222";
}
